<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>商品</title>
    <link rel="stylesheet" href="/layui/css/layui.css">
    <script type="text/javascript" src="/layui/layui.js"></script>
    <script type="text/javascript" src="/jquery/jquery-3.2.1.min.js"></script>
</head>
<body style="background-color: #F4F6F8">
<div style="margin-top: 20px;">
    <form class="layui-form" id="update" lay-filter="selFilter">
        <div class="layui-form-item">
            <div class="layui-form-mid layui-word-aux" style="margin-left:270px;"></div>
            <div class="layui-input-inline">
                <img id="mainImage" src="" style="width:100px;height:100px;border-radius:50%;">
                <input type="hidden" name="mainImage">
            </div>
        </div>
        <div class="layui-row layui-form-item" style="margin-bottom: -15px">
            <locator class="layui-form-label">商品编号：</locator>
            <div class="layui-input-block">
                <input type="text" class="layui-input" id="code" required lay-verify="required|number" name="productCode" placeholder="编号" style="width: 218px;float: left">
            </div>
            <locator class="layui-form-label" style="margin-top: -30px">商品名称：</locator>
            <div class="layui-input-block">
                <input type="text" class="layui-input" lay-verify="required" name="productName" placeholder="名称"
                       style="width: 218px;float: left;margin-top:-35px">
            </div>
        </div>
        <div class="layui-row layui-form-item" style="margin-bottom: -15px">
            <locator class="layui-form-label">商品价格：</locator>
            <div class="layui-input-block">
                <input type="text" class="layui-input" required lay-verify="required|number" name="currentpriceProduct" placeholder="价格" style="width: 218px;float: left">
            </div>
            <locator class="layui-form-label" style="margin-top: -30px;margin-right: -110px">商品状态：</locator>
            <div class="layui-input-block" style="margin-top: -30px;float: left">
                <select id="productSate" name="productSate" class="layui-select">
                    <option value="1">上架</option>
                    <option value="2">下架</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item layui-form-text" style="margin-top: 30px">
            <label class="layui-form-label">商品标签：</label>
            <div class="layui-input-block">
                <textarea placeholder="请输入内容" required lay-verify="required" id="productLabel" name="productLabel" class="layui-textarea" style="width: 547px;height: 50px"></textarea>
            </div>
        </div>
        <div class="layui-form-item layui-form-text" style="margin-top: 30px">
            <label class="layui-form-label">商品简介：</label>
            <div class="layui-input-block">
                <textarea placeholder="请输入内容" required lay-verify="required" id="productDescription" name="productDescription" class="layui-textarea" style="width: 547px;height: 50px"></textarea>
            </div>
        </div>
        <hr/>
        <div class="layui-form-item" style="text-align: center">
            <div class="layui-input-block">
                <input type="button" class="layui-btn" value="确定" onclick="wancheng()">
                <input type="button" class="layui-btn site-demo-layedit" value="取消" onclick="quxiao()">
            </div>
        </div>
        <input name="productId" type="hidden" id="productId" value="">
    </form>
</div>
</body>
<script src="/js/goods/goods-update.js"></script>
</html>